import request from "@/utils/request";

// 新增代运营店铺
export function addStore(query) {
  return request({
    url: '/seller/agencyOperationsAssociation/add',
    method: 'post',
    data: query
  })
}

// 查询代运营关联详细
export function getAgencyOperationsAssociation(id) {
  return request({
    url: '/seller/agencyOperationsAssociation/' + id,
    method: 'get'
  })
}

// 获取代运营店铺列表
export function queryStoreList(query) {
  return request({
    url: '/seller/agencyOperationsAssociation/list',
    method: 'get',
    params: query
  })
}

// 修改代运营关联店铺信息
export function editStore(query) {
  return request({
    url: '/seller/agencyOperationsAssociation/edit',
    method: 'put',
    data: query
  })
}

// 删除代运营关联店铺
export function deleteStore(id) {
  return request({
    url: '/seller/agencyOperationsAssociation/' + id,
    method: 'delete',
  })
}
